package com.codeark.appengine;

import java.io.IOException;
import java.net.URL;
import java.util.Map;

import com.google.appengine.api.urlfetch.HTTPHeader;

/**
 * A Facade over app engine low level URLFetch Service for getting data
 * 
 * @author Yaniv Kessler (yaniv at codeark dot com)
 *
 */
public interface UrlFetchServiceFacade<T> {
	T post(URL url, Map<String, String> data) throws IOException;
	T post(URL url, Map<String, String> data, HTTPHeader...headers) throws IOException;
	
	T get(URL url) throws IOException;
	T get(URL url, HTTPHeader...headers) throws IOException;
}
